package patterns.bridge.main;

import patterns.bridge.core.Bridge;
import patterns.bridge.core.MyBridge;
import patterns.bridge.core.Source1;
import patterns.bridge.core.Source2;
import patterns.bridge.core.Sourceable;

public class Test {
	public static void main(String[] args) {
		Bridge bridge = new MyBridge();
		Sourceable source1 = new Source1();
		Sourceable source2 = new Source2();
		bridge.setSource(source1);
		bridge.method();
		bridge.setSource(source2);
		bridge.method();
	}
}
